-- GENERATED SPELL FOR [Duke Vallenhal] --


function spell0_26926(pUnit, Event) --@Blood Presence,Self--
pUnit:FullCastSpellOnTarget(50689,pUnit)
pUnit:RegisterEvent('Sorts_26926', 688, 1)
end

function spell1_26926(pUnit, Event) --@Bloodworm,n/a--
pUnit:FullCastSpellOnTarget(51873,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26926', 8322, 1)
end

function Sorts_26926(pUnit, Event)
local choix_sorts_26926 = math.random(0, 1)
if choix_sorts_26926 == 0 then
pUnit:RegisterEvent('spell0_26926', 1, 1)
end
if choix_sorts_26926 == 1 then
pUnit:RegisterEvent('spell1_26926', 1, 1)
end
end

function mob26926_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26926', math.random(1500, 3000), 1)
end

function mob26926_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26926_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26926_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26926, 1, 'mob26926_Action')
RegisterUnitEvent(26926, 2, 'mob26926_Leave')
RegisterUnitEvent(26926, 3, 'mob26926_Kill')
RegisterUnitEvent(26926, 4, 'mob26926_Die')
